<?php
declare (strict_types = 1);

namespace app\common\model\notify;

use adminmatrix\admin\model\BaseModel;
use think\Model;
use think\model\relation\HasMany;

/**
 * @mixin \think\Model
 */
class MsgNotificationConfig extends BaseModel
{
    //
    #------------------------------------------
    #   关联模型 一对多
    #------------------------------------------

    # 关联 事件表
    public function listen() : HasMany
    {
        return  $this->hasMany(MsgNotificationListen::class , 'parent_id')->whereNotIn('type' , 4);
    }
}
